Hackerrank – Viral Advertising

Hackerrank – Problem Statement

A description of the problem can be found on Hackerrank.

Solution

For each day calculate how many people like the advertisement. Use the formula from problem description. Then sum all people.

I created solution in:

All solutions are also available on my GitHub.

Java

JavaScript

Scala

Ruby

Leave a Reply

Your email address will not be published. Required fields are marked *